package com.tledu.spring06.spring02.service;

import com.tledu.spring06.spring02.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Antg
 * @date 2021/8/523:09
 */
//@Component(value = "userService1")
@Service(value = "userService1")
public class UserServiceImpl1 implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public void testService() {
        System.out.println("测试使用注解开发");
        userDao.daoTest();
    }
}
